home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Scripting < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Scripting
  2. Sent:        6/27/96 9:58 AM
  3. Received:    6/27/96 10:11 AM
  4. From:        Hutchings, Richard B. "Brad", brad@hutchings-software.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. > I've wanted to make my part scriptable, but it seems like my
  9. dictionnary
  10. > isn't recognized by the Script Editor. I always get a syntax error
  11. > "expected class name but got identifier" but if I open the part's
  12. > dictionnary, my class is well defined. Have I missed something ?
  13. > Stephane.
  14.  
  15. It sounds like an OpenDoc issue to me. OpenDoc uses a master merged
  16. 'aete', which appears to be rebuilt only when the editors folder
  17. changes. You need to force OpenDoc to rebuild the editors database by
  18. moving soemthing in and out of that folder.
  19.  
  20. Then, you need to quit and restart Script Editor, because it appears
  21. to cache 'aete's that it finds.
  22.  
  23. Finally, open a document or stationery with your part. Then, open
  24. Script Editor. Now, drag the __document__ file onto the Script Editor
  25. icon in the Finder. The merged terminology dictionary used by OpenDoc
  26. will be opened. Check to make sure your terminology is in there.
  27.  
  28. Remember that since terminology is merged, it could clobber that of
  29. another part, so (as I learned this week), keep your new terminology
  30. to a minimum and look over the existing suites. A good list to dicuss
  31. terminology issues is "AppleScript-Implementors". When I brought my
  32. terminology questions up there, I immediately had two heavy-weights in
  33. the scripting world offering advice and assistance. And my editor is a
  34. lot better for it!
  35.  
  36.  
  37. Brad
  38.  
  39. <mailto:brad@hutchings-software.com>
  40.  
  41.  
  42.  
  43.